from PyQt4.QtCore import Qt
from PyQt4.QtGui import QWidget, QLabel, QPixmap, QFont

class StatsPanel(QLabel):
	def __init__(self, *args, **kw):
#
#		parent constructor and geometry
#
		QLabel.__init__(self, *args, **kw)
		self.setGeometry(0, 0, 269, 304)
#
#		set up a font. I'm not sure Gabrielle works
#		so well for this panel, but I've not found anything
#		better yet. So for the time being...
#
		font = QFont("Gabrielle", 18)
		self.setFont(font)
#
#		a stylesheet to set the background image
#
		ss = """
			QLabel {
				background-color : transparent;
				background-image : url(work/status_panel.png);
			}
		"""
		self.setStyleSheet(ss)
#
#		make the text centered in the label
#
		self.setAlignment(Qt.AlignVCenter | Qt.AlignHCenter )


